home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
bywhen10.zip
/
RUNCHK.BAT
< prev
Wrap
DOS Batch File
|
1995-01-09
|
1KB
|
48 lines
@echo off
cls
goto setvars
/////////////////////////////////////////////////////////////
/ NAME: runchk.bat /
/ PURPOSE: execute DOS's chkdsk and redirect it's output /
/ DATE: 11/24/94 /
/ NOTE: This is a test .bat for BYWHEN.EXE and is provided /
/ as an example only for a BYWHEN.EXE demo. /
/ DO NOT execute while MS WINDOWS is running. /
/ Remove the @ if DOS ver prior to 3.30 /
/////////////////////////////////////////////////////////////
:setvars
set __chkdsk=chkdsk
set __hdrive=c:
set __errfil=c:\cddemo.rpt
goto start
:start
echo CHKDSK REPORT > %__errfil%
echo. >> %__errfil%
%__chkdsk% %__hdrive% >> %__errfil%
echo. >> %__errfil%
if not exist %__errfil% goto nofind
cls
rem type %__errfil% | more
more < %__errfil%
goto cleanup
:nofind
echo.
echo Problem with ChkDsk and creating %_errfil%
echo.
pause
cls
goto cleanup
:cleanup
set __errfil=
set __hdrive=
set __chkdsk=
goto end
:end